package com.bincloud.vue.admin.web.dto.ums.menu;

import com.bincloud.vue.admin.common.model.dto.request.BaseReqDTO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;

/**
 * @Description: 菜单新增入参
 * @Author: bincloud, mvpzhou
 * @Date: Create By bincloud, mvpzhou on 2022/2/18
 */
@EqualsAndHashCode(callSuper = true)
@Data
@ApiModel(value = "菜单新增入参")
public class UmsMenuSaveReqDTO extends BaseReqDTO {
    @ApiModelProperty(value = "父级ID")
    private Long pid;

    @ApiModelProperty(value = "菜单名称")
    @NotBlank(message = "菜单名称, 不可为空")
    private String name;

    @ApiModelProperty(value = "菜单标题")
    @NotBlank(message = "菜单标题, 不可为空")
    private String title;

    @ApiModelProperty(value = "菜单图标")
    private String icon;

    @ApiModelProperty(value = "菜单级数")
    private Integer level = 0;

    @ApiModelProperty(value = "菜单排序")
    private Integer sort = 0;

    @ApiModelProperty(value = "状态(0 启用 1 禁用)")
    private Integer state = 0;

}
